<%--
   operate
   Copyright (c) 2013 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	deferredSyntaxAllowedAsLiteral="false" trimDirectiveWhitespaces="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ attribute name="businessId" required="false" type="java.lang.String"
	description="业务表关联id"%>

<c:set var="datalogId" value="<%=(int)(Math.random()*1000000) %>"></c:set>
<div class="m m7 help">
	<div class="mt">
		<h3>数据修改日志</h3>
	</div>
	<div class="mc">
		<div class="h-txt">
			<ul id="businessId_${datalogId}">
			</ul>
		</div>
		<jsp:doBody />
	</div>
</div>
<script type="text/javascript">
	$(function() {
		$.getJSON("db/entity/getCiDatalogByBusinessId/${businessId}", function(data) {
			var html = "";

			$(data).each(function(index, item) {
				html += "<li>";
				html += "<div class='r_title'>" + (index + 1) + ".<b>" + item.modifier_name + "</b> 操作于" + item.modify_date;
				
				if(item.title!=undefined&&item.title!=""){
				html+="<span style='padding:0 10px;color:#555'>（<a style='color:#555' class='nui-txt-link' href='javascript:void(0)' onclick=''>"+item.title+"</a>）</span>"
				}
				
				html += "<div class='r_content TextContent'>" +(item.db_desctiption||"")+ (item.description||"")+"</div>";
				html += "</div>";
				html += "</li>";
			}); 
			$("#businessId_${datalogId}").html(html);
		});
	});
</script>



